package xinxin.com.TemplateMethodPatternBasic;

import xinxin.com.TemplateMethodPatternBasic.AbstractClass.AbstractClass;
import xinxin.com.TemplateMethodPatternBasic.AbstractClass.ConcreateClass.ConcreateClassA;
import xinxin.com.TemplateMethodPatternBasic.AbstractClass.ConcreateClass.ConcreateClassB;

public class TemplateMethodPatternBasic {
    public static void main(String[] args) {
        AbstractClass c;

        c = new ConcreateClassA();
        c.TemplateMethod();

        c = new ConcreateClassB();
        c.TemplateMethod();
    }
}
